﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XW.Web.Framework.Permissions
{
    /// <summary>
    /// 权限验证服务
    /// </summary>
    public interface IPermissionService
    {
        List<string> GetAllPermission();
        List<string> GetPermission(long userId,long  orgid);
        bool CheckPermission(long  userId,long orgId,string permissionName);
        List<dynamic> GetButtonList(long userId, string permissionName, bool isSup);

        dynamic GetButton(long userId, string permissionName, bool isSup);

        /// <summary>
        /// 获取有权限的用户列表
        /// </summary>
        /// <param name="permissionName"></param>
        /// <returns></returns>
        List<dynamic> GetUsersByPermission(string permissionName);
    }
}
